//
//  AnswerViewController.m
//  insight
//
//  Created by HY on 2018/9/25.
//  Copyright © 2018年 dfhfe. All rights reserved.
//

#import "AnswerViewController.h"
#import "MasterTableViewController.h"
#import "MyQuestionsTableViewController.h"
#import "FindTableViewController.h"

@interface AnswerViewController ()

@end

@implementation AnswerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"解惑";
    
    //添加全部控制器
    [self setupAllChildViewController];
    
    
}

#pragma mark - 设置全部子控制器到
- (void)setupAllChildViewController {
    
    //大师解惑
    [self setOneChildController:[[MasterTableViewController alloc]init] title:@"大师解惑"];
    
    //我的问题
    [self setOneChildController:[[MyQuestionsTableViewController alloc]init] title:@"我的问题"];
    
    //发现
    [self setOneChildController:[[FindTableViewController alloc]init] title:@"发现"];
    
    
    
}


- (void)setOneChildController:(UIViewController *)vc title:(NSString *)title
{
    vc.title = title;
    [self addChildViewController:vc];
}






@end
